package com.dlx.acl.client;

import com.dlx.model.acl.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <h3>smms_parent</h3>
 *
 * @author nglon
 * @description <p>acl模块用户服务接口</p>
 * @date 2021-11-15 19:43
 **/
@FeignClient("service-acl")
@Component
public interface UserFeignClient {

    @GetMapping("/admin/acl/user/inner/getByUsername/{username}")
    User getByUsername(@PathVariable("username") String username);

    @GetMapping("/admin/acl/user/inner/getById/{id}")
    User getById(@PathVariable("id") Long id);

    @GetMapping("/admin/acl/user/inner/getCurrentUser")
    User getCurrentUser();
}
